package day0602;

public class File7 {

    //153  =    1*1*1 +   *5*5*5 + 3*3*3
    public static void main(String[] args) {

        int i=100;
        while(i<=999){
            int b=i/100%10;
            int s=i/10%10;
            int g=i/1%10;
            if(i == b*b*b  + s*s*s + g*g*g){
                System.out.println(i+ "是水仙花数");
            }
            i++;
        }

    }
}
